package com.gzhryc.net_marketing.api.protocol.account;

import com.gzhryc.common.NumberTools;
import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class CloudPayAccountWithdrawOrderListResponse extends SecurityResponse<CloudPayAccountWithdrawOrderListResponse.Body> {

    private static final long serialVersionUID = 1L;

    public CloudPayAccountWithdrawOrderListResponse() {
        this.body = new Body();
    }

    public CloudPayAccountWithdrawOrderListResponse(Integer code) {
        super(code);
        this.body = new Body();
    }

    public CloudPayAccountWithdrawOrderListResponse(Integer code, String msg) {
        super(code,msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private Long total;
        private List<OrderItem> orderItemList;

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }

        public List<OrderItem> getOrderItemList() {
            return orderItemList;
        }

        public void setOrderItemList(List<OrderItem> orderItemList) {
            this.orderItemList = orderItemList;
        }
    }

    public static class OrderItem {

        private String tradeNo;
        private String title;
        private Integer money;

        private Integer payType;            //收款应用类型
        private String receivingAppId;       //收款应用ID
        private String receivingId;         //收款人ID
        private String receivingFaceImg;     //收款人头像
        private String receivingNickname;     //收款人名称
        private String receivingPhone;     //收款人电话

        private Integer TransferType;       //转账方式
        private String TransferTypeName;
        private Integer state;
        private String stateName;
        private Date createDate;

        public String getTradeNo() {
            return tradeNo;
        }

        public void setTradeNo(String tradeNo) {
            this.tradeNo = tradeNo;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public Integer getMoney() {
            return money;
        }

        public void setMoney(Integer money) {
            this.money = money;
        }

        public Integer getPayType() {
            return payType;
        }

        public void setPayType(Integer payType) {
            this.payType = payType;
        }

        public String getReceivingAppId() {
            return receivingAppId;
        }

        public void setReceivingAppId(String receivingAppId) {
            this.receivingAppId = receivingAppId;
        }

        public String getReceivingId() {
            return receivingId;
        }

        public void setReceivingId(String receivingId) {
            this.receivingId = receivingId;
        }

        public String getReceivingFaceImg() {
            return receivingFaceImg;
        }

        public void setReceivingFaceImg(String receivingFaceImg) {
            this.receivingFaceImg = receivingFaceImg;
        }

        public String getReceivingNickname() {
            return receivingNickname;
        }

        public void setReceivingNickname(String receivingNickname) {
            this.receivingNickname = receivingNickname;
        }

        public String getReceivingPhone() {
            return receivingPhone;
        }

        public void setReceivingPhone(String receivingPhone) {
            this.receivingPhone = receivingPhone;
        }

        public Integer getTransferType() {
            return TransferType;
        }

        public void setTransferType(Integer transferType) {
            TransferType = transferType;
        }

        public String getTransferTypeName() {
            return TransferTypeName;
        }

        public void setTransferTypeName(String transferTypeName) {
            TransferTypeName = transferTypeName;
        }

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

        public String getStateName() {
            return stateName;
        }

        public void setStateName(String stateName) {
            this.stateName = stateName;
        }

        public Date getCreateDate() {
            return createDate;
        }

        public void setCreateDate(Date createDate) {
            this.createDate = createDate;
        }

        public String getMoneyStr(){
            return NumberTools.getMoneyStr(this.money);
        }
    }
}
